home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 20 code / Pict Tricks / CLUTLess / CLUTLessFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-28  |  1.0 KB  |  34 lines  |  [TEXT/MMCC]

  1.  
  2. /*     
  3.                             CLUTLess
  4.             In some instances it is desireable to store picts stripped of
  5.             CLUTs in order to save some room in the disk. This sample shows
  6.             how to create such picts and how to properly display them back.
  7.             
  8.             SimpleInC.c -- initialization stuff and event loop
  9.             CLUTLess.c  -- code that does the creation of the clut less pict;
  10.                            shows also how to display the pictures.
  11.     
  12. */
  13.  
  14. /* all the includes we need. */
  15. #include <Memory.h>
  16. #include <QDOffscreen.h>
  17. #include <Resources.h>
  18. #include <StandardFile.h>
  19. #include <ToolUtils.h>
  20.  
  21. extern         PicHandle     gModPict;         // for the modified picture
  22. extern         CTabHandle     gSharedClut;     // we use this to create the 'clut' resource
  23.                                         // later we use it for reading in the 'clut'
  24.  
  25. #define     fsFromStart     1
  26.  
  27. /* clutlessFile.c */
  28. short         OpenPictureFile(SFReply *reply);
  29. void        KillFile(short ref, SFReply *reply);
  30. void         ClosePictureFile(short ref, SFReply *reply, PicHandle aPict);
  31. void         SaveCLUTResource(SFReply *sfr);
  32.  
  33. Boolean     GetPictBack(void);
  34. void         GetClutBack(SFReply    *sfr);